package innerclass;

public class Hero {

	public static void main(String[] args) {
		short i = 0;
		short s = 32767 + 0;
		
		//gives me an error.
//		Hero h = new Hero(); 
//		// local variables cannot be static
//		Pop pop = new Pop();
//		pop.mtd();
//		Food food = new Food();
	}
	
}


class Pop {
	void mtd() {
		System.out.println("Pop");
	}
}

class Food {
	static Pop p = new Pop(){

		void mtd(){
			System.out.println("Pop2222");
		}
	};

	public static void main(String []a) {
		p.mtd();
	}
}